home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scroll1 / about3.frm next >
Text File  |  1995-05-02  |  6KB  |  209 lines

  1. VERSION 2.00
  2. Begin Form About2 
  3.    BackColor       =   &H00FFFFFF&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "About Title"
  6.    ClientHeight    =   3210
  7.    ClientLeft      =   1455
  8.    ClientTop       =   1845
  9.    ClientWidth     =   5190
  10.    ControlBox      =   0   'False
  11.    FontBold        =   -1  'True
  12.    FontItalic      =   -1  'True
  13.    FontName        =   "MS Sans Serif"
  14.    FontSize        =   8.25
  15.    FontStrikethru  =   0   'False
  16.    FontUnderline   =   0   'False
  17.    ForeColor       =   &H00000000&
  18.    Height          =   3615
  19.    Icon            =   ABOUT3.FRX:0000
  20.    Left            =   1395
  21.    LinkMode        =   1  'Source
  22.    LinkTopic       =   "Form1"
  23.    MaxButton       =   0   'False
  24.    MinButton       =   0   'False
  25.    ScaleHeight     =   3210
  26.    ScaleWidth      =   5190
  27.    Top             =   1500
  28.    Width           =   5310
  29.    Begin Timer Timer1 
  30.       Interval        =   2000
  31.       Left            =   4680
  32.       Top             =   1920
  33.    End
  34.    Begin CommandButton Command1 
  35.       Cancel          =   -1  'True
  36.       Caption         =   "OK"
  37.       Default         =   -1  'True
  38.       Height          =   375
  39.       Left            =   2040
  40.       TabIndex        =   4
  41.       Top             =   2640
  42.       Width           =   1095
  43.    End
  44.    Begin Image Image3 
  45.       Height          =   480
  46.       Left            =   0
  47.       Picture         =   ABOUT3.FRX:0302
  48.       Top             =   1200
  49.       Width           =   480
  50.    End
  51.    Begin Label Lbl_InfoValues 
  52.       Height          =   615
  53.       Left            =   3000
  54.       TabIndex        =   6
  55.       Top             =   1920
  56.       Width           =   1410
  57.    End
  58.    Begin Label Label5 
  59.       Alignment       =   2  'Center
  60.       Caption         =   "John De Palma on CompuServe 76076,571"
  61.       Height          =   255
  62.       Left            =   240
  63.       TabIndex        =   5
  64.       Top             =   1320
  65.       Width           =   4695
  66.    End
  67.    Begin Image Image2 
  68.       Height          =   480
  69.       Left            =   0
  70.       Picture         =   ABOUT3.FRX:0604
  71.       Top             =   600
  72.       Width           =   480
  73.    End
  74.    Begin Image Image1 
  75.       Height          =   480
  76.       Left            =   0
  77.       Picture         =   ABOUT3.FRX:0906
  78.       Top             =   0
  79.       Width           =   480
  80.    End
  81.    Begin Line Line1 
  82.       X1              =   600
  83.       X2              =   4800
  84.       Y1              =   1800
  85.       Y2              =   1800
  86.    End
  87.    Begin Label Label2 
  88.       Alignment       =   2  'Center
  89.       Caption         =   "Title"
  90.       FontBold        =   -1  'True
  91.       FontItalic      =   0   'False
  92.       FontName        =   "MS Sans Serif"
  93.       FontSize        =   22.5
  94.       FontStrikethru  =   0   'False
  95.       FontUnderline   =   0   'False
  96.       Height          =   615
  97.       Left            =   720
  98.       TabIndex        =   1
  99.       Top             =   120
  100.       Width           =   4095
  101.    End
  102.    Begin Label Label1 
  103.       Alignment       =   2  'Center
  104.       BackColor       =   &H00FFFFFF&
  105.       BackStyle       =   0  'Transparent
  106.       Caption         =   "Version  2.1"
  107.       FontBold        =   -1  'True
  108.       FontItalic      =   0   'False
  109.       FontName        =   "MS Sans Serif"
  110.       FontSize        =   15
  111.       FontStrikethru  =   0   'False
  112.       FontUnderline   =   0   'False
  113.       ForeColor       =   &H00800000&
  114.       Height          =   330
  115.       Left            =   1560
  116.       TabIndex        =   0
  117.       Top             =   720
  118.       Width           =   2295
  119.    End
  120.    Begin Label Lbl_Info 
  121.       Height          =   615
  122.       Left            =   720
  123.       TabIndex        =   2
  124.       Top             =   1920
  125.       Width           =   1935
  126.    End
  127.    Begin Label Label4 
  128.       Alignment       =   2  'Center
  129.       Caption         =   "LearnWare ⌐ 1994"
  130.       Height          =   255
  131.       Left            =   240
  132.       TabIndex        =   3
  133.       Top             =   1560
  134.       Width           =   4935
  135.    End
  136. End
  137. 'this stuff from AboutBox of Iconwrks
  138. DefInt A-Z
  139. Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags) As Long
  140. Declare Function GetWinFlags Lib "Kernel" () As Long
  141. Const WF_STANDARD = &H10
  142. Const WF_ENHANCED = &H20
  143. Const WF_80x87 = &H400
  144.  
  145. Sub Command1_Click ()
  146.     'Cancel About form
  147.     Unload About2
  148. End Sub
  149.  
  150. Sub Form_Load ()
  151. Dim WinFlags As Long
  152. Dim Mode As String, Processor As String
  153. Dim CRLF As String
  154. CRLF = Chr$(13) + Chr$(10)
  155.     
  156.     WinFlags = GetWinFlags()
  157.     If WinFlags And WF_ENHANCED Then
  158.         Mode = "386 Enhanced Mode"
  159.     Else
  160.         Mode = "Standard Mode"
  161.     End If
  162.     
  163.     Lbl_Info.Caption = Mode + CRLF + "Free Memory:" + CRLF + "Math Co-processor:"
  164.     
  165.     If WinFlags And WF_80x87 Then
  166.         Processor = "Present"
  167.     Else
  168.         Processor = "None"
  169.     End If
  170.     
  171.     Lbl_InfoValues.Caption = CRLF + Format$(GetFreeSpace(0) \ 1024) + " KB" + CRLF + Processor
  172.     'Center form
  173.     Left = (Screen.Width - Width) / 2
  174.     Top = (Screen.Height - Height) / 2
  175.     
  176.     'Place both happy faces
  177.     Image1.Left = 0
  178.     Image1.Top = 0
  179.     Image2.Left = 0
  180.     Image2.Top = 0
  181.     Image3.Left = 0
  182.     Image3.Top = 0
  183.  
  184.     'Make first icon visible
  185.     Image1.Visible = True
  186.     Image2.Visible = False
  187.     Image3.Visible = False
  188. End Sub
  189.  
  190. Sub Timer1_Timer ()
  191.         
  192.         If Image1.Visible = True Then
  193.             Image1.Visible = False
  194.             Image2.Visible = True
  195.             Image3.Visible = False
  196.         ElseIf Image2.Visible = True Then
  197.             Image2.Visible = False
  198.             Image3.Visible = True
  199.             Image1.Visible = False
  200.         ElseIf Image3.Visible = True Then
  201.             Image1.Visible = True
  202.             Image2.Visible = False
  203.             Image3.Visible = False
  204.         Else
  205.         End If
  206.  
  207. End Sub
  208.  
  209.